//
//  SpaceEditController.h
//  cutter
//
//  Created by ZhangLi on 16/1/11.
//  Copyright © 2016年 e360. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SpaceCustom.h"
#import "TMUtils.h"
//#import <MediaPlayer/MediaPlayer.h>
#import "AppData.h"

@interface UICollectionViewColorCell:UICollectionViewCell
@property (weak, nonatomic) IBOutlet SpaceCustomUIImageView *imageview;
@end


@interface ButtonLable:UIButton
@property (strong, nonatomic) NSString *index;
@end

@interface HouseDetailLayer : UIView
@property(nonatomic,strong) UIView *tipsView;
@property(nonatomic,strong) UIView *tipsView2;
@property(nonatomic,strong) UIView *lableView;
@property(nonatomic,strong) NSMutableDictionary *layers;
-(void)setImage:(NSString*)image index:(NSUInteger)index;
-(void)reset;
@end


//
@interface SpacePropertyListViewSingleCell:UICollectionViewCell
@property (weak, nonatomic) IBOutlet SpaceCustomUIImageView *imageview;
@property (weak, nonatomic) IBOutlet UIImageView *iconview;
@property (weak, nonatomic) IBOutlet UILabel *nameView;
@property (strong, nonatomic) NSString *index;
@end
//
@interface SpacePropertyContainer : UIViewController<UIGestureRecognizerDelegate>{
    NSInteger count;

}
@property (weak, nonatomic) IBOutlet UIImageView *arrow;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView_color;
@property (weak, nonatomic) IBOutlet UIButton *closeView;
@property (weak, nonatomic) IBOutlet UIButton *button4;
@property (weak, nonatomic) IBOutlet UIButton *button3;
@property (weak, nonatomic) IBOutlet UIButton *button2;
@property (weak, nonatomic) IBOutlet UIButton *button1;
@property (strong, nonatomic) id data;
@property (strong, nonatomic) id sort;
@property (strong, nonatomic) NSMutableArray *newarray;
@property (strong, nonatomic) NSMutableArray *colorarray;
@property (strong, nonatomic) id value;
@property (strong, nonatomic) NSString *index;
@property (copy, nonatomic) blockEvent onSelected_rz;
@property (copy, nonatomic) blockEvent onSelected_yz;
@property (copy, nonatomic) blockEvent onSelected3;
@property (copy, nonatomic) blockEvent onSelected2;
@property (copy, nonatomic) blockEvent onSelected1;
@property (copy, nonatomic) blockEvent onSelected;
@property (assign, nonatomic) NSInteger isplay;
@property (assign, nonatomic) NSInteger tempSection;
@property (strong, nonatomic) NSIndexPath *IndexPath;
@property (retain, nonatomic) NSIndexPath *IndexPath1;
@property (assign, nonatomic) NSInteger pointID;
@property (assign, nonatomic) NSInteger pointID_yz;
@property (strong, nonatomic) NSMutableDictionary *DicIndexPath2;
@property (strong, nonatomic) NSMutableDictionary *DicIndexPath;
@property (strong, nonatomic) NSMutableDictionary *roomDic;
@property (strong, nonatomic) NSMutableDictionary *pointDic;
-(void)updata;

@end




//－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－
@interface SpaceProductListHead : UITableViewCell{
}
@property (weak,nonatomic) NSMutableDictionary* data;
@property (nonatomic,assign)BOOL isHard;//是否硬装

@property (weak, nonatomic) IBOutlet UIButton *selectView;
@property (weak, nonatomic) IBOutlet UILabel *tilteView;
@property (weak, nonatomic) IBOutlet UILabel *priceView;
@end
//
@interface SpaceProductListCellCell2: UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *countView;
@property (weak, nonatomic) IBOutlet UILabel *priceView;

@property (weak, nonatomic) IBOutlet UILabel *nameView;

@property (weak, nonatomic) IBOutlet UIButton *selectView;
@property (weak, nonatomic) IBOutlet UITextView *labelView;
@property(strong,nonatomic)NSMutableDictionary * cellInfo;

-(void)configCellWithCellInfo:(NSMutableDictionary *)cellInfo;
@end

@interface SpaceProductListCellCell: UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *countView;
@property (weak, nonatomic) IBOutlet UILabel *priceView;
@property (weak, nonatomic) IBOutlet UILabel *clolorView;
@property (weak, nonatomic) IBOutlet UIButton *allView;
@property (weak, nonatomic) IBOutlet UIImageView *_imageView;
@property (weak, nonatomic) IBOutlet UILabel *nameView;
@property (weak, nonatomic) IBOutlet UILabel *specView;
@property (weak, nonatomic) IBOutlet UIButton *selectView;



@property(strong,nonatomic)NSMutableDictionary * cellInfo;

-(void)configCellWithCellInfo:(NSMutableDictionary *)cellInfo;

@end
//
@interface SpaceProductListBigCell: UITableViewCell{
    float totalprice;
}
@property (strong, nonatomic) NSMutableArray *dat;
@property (weak, nonatomic) IBOutlet UITableView *listView;
@property (strong, nonatomic) id data;
@end
//
@interface SpaceProductListBigHead : UITableViewCell{
}
@property(weak,nonatomic)NSMutableDictionary *data;

@property (weak, nonatomic) IBOutlet UIButton *allButton;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UIButton *selectView;
@end
//
@interface SpaceProductListLeftCell: UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *lableView;
@end
//产品清单
@interface SpaceProductList : SpaceCustomView<UIScrollViewDelegate>
@property (weak, nonatomic) IBOutlet UITableView *leftView;
@property (weak, nonatomic) IBOutlet UITableView *mainView;
@property (weak, nonatomic) IBOutlet UILabel *allcount;
@property (weak, nonatomic) IBOutlet UILabel *allprice;
@property (weak, nonatomic) IBOutlet UILabel *allprice2;
@property (weak, nonatomic) IBOutlet UIButton *selectView;
@property (weak, nonatomic) IBOutlet UIButton *button1;
@property (weak, nonatomic) IBOutlet UIButton *button2;
@property (weak, nonatomic) IBOutlet UIButton *allbtton;
@property (copy, nonatomic) blockEvent onSelected_productList;
@property (strong, nonatomic) id data_left;
@property (strong, nonatomic) id data_right;
@property (strong, nonatomic) NSMutableArray *array;
@property (strong, nonatomic) id ID;
@property (assign, nonatomic) NSInteger type;
@end
//－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－


//标签
@interface SpaceHotPointDetailCell: UITableViewCell
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *image;
@property (weak, nonatomic) IBOutlet SpaceCustomUIImageView *imageview;
@property (weak, nonatomic) IBOutlet UILabel *nameView;
@property (weak, nonatomic) IBOutlet UILabel *specView;
@property (weak, nonatomic) IBOutlet UILabel *classView;
@property (weak, nonatomic) IBOutlet UILabel *materialView;
@property (weak, nonatomic) IBOutlet UILabel *colorView;
@property (weak, nonatomic) IBOutlet UILabel *priceView;
@property (weak, nonatomic) IBOutlet UILabel *countView;
@property (weak, nonatomic) IBOutlet UILabel *nameView2;
@property (weak, nonatomic) IBOutlet UITextView *labelView;
@property (weak, nonatomic) IBOutlet UIView *view;

@property (weak, nonatomic) IBOutlet UILabel *guige;
@property (weak, nonatomic) IBOutlet UILabel *pinlei;
@property (weak, nonatomic) IBOutlet UILabel *caizhi;
@property (weak, nonatomic) IBOutlet UILabel *yanse;

@end
@interface SpaceHotPointDetail : SpaceCustomView<UIGestureRecognizerDelegate>
@property (weak, nonatomic) IBOutlet UILabel *totalprice;
@property (weak, nonatomic) IBOutlet UILabel *totalCount;
@property (weak, nonatomic) IBOutlet UIButton *addCart;
@property (weak, nonatomic) IBOutlet UIButton *addfav;
@property (strong, nonatomic) NSMutableArray * newarray;



@property (strong, nonatomic) id data;
@end

//理念
@interface SpaceIdeaView : SpaceCustomView
@property (weak, nonatomic) IBOutlet UITextView *textView;
@property (strong, nonatomic) id data;
@end
//

@interface SpaceEditController : UIViewController<UIGestureRecognizerDelegate>
{
    float total_price;
    NSInteger bools;
    NSInteger cot;
    UIImageView *launchImageView;
    SpacePropertyContainer *ruanzhuang;
    SpacePropertyContainer *ruanzhuang_danpin;
    SpacePropertyContainer *yingzhuang;
    SpacePropertyContainer *yingzhuang_danpin;
    SpaceProductList *spaceproductlist;
}
@property (weak, nonatomic) IBOutlet UIButton *AngleView;
@property (weak, nonatomic) IBOutlet UIButton *PanoView;
@property (weak, nonatomic) IBOutlet UIButton *PhotoView;
@property (weak, nonatomic) IBOutlet UIButton *IdeaView;
@property (weak, nonatomic) IBOutlet UIButton *LableView;
@property (weak, nonatomic) IBOutlet UIButton *ListView;
@property (weak, nonatomic) IBOutlet UIButton *collectView;
@property (weak, nonatomic) IBOutlet UIButton *animationView;
@property (weak, nonatomic) IBOutlet UIButton *MagicView;
@property (weak, nonatomic) IBOutlet UIView *mapView;
@property (weak, nonatomic) IBOutlet UIButton *roomView;
@property (weak, nonatomic) IBOutlet HouseDetailLayer *layerView;

@property (weak, nonatomic) IBOutlet UILabel *titleView;

@property (strong, nonatomic) NSString *titleName;
@property (strong, nonatomic) NSMutableArray *bigData;
@property (strong, nonatomic) NSMutableDictionary *tempArray;
@property (strong, nonatomic) NSMutableArray *allData;
@property (strong, nonatomic) NSMutableArray *source;
@property (strong, nonatomic) NSMutableArray *sourcetemp;
@property (strong, nonatomic) NSDictionary *source2;
@property (strong, nonatomic) NSMutableArray *newarray;
@property (strong, nonatomic) NSMutableArray *newarray2;
@property (strong, nonatomic) NSDictionary *data;
@property (strong, nonatomic) NSArray *photo;
@property (strong, nonatomic) NSMutableDictionary *pano;
@property (strong, nonatomic) NSDictionary *productChange;
@property (assign, nonatomic) NSInteger count;
@property (assign, nonatomic) NSInteger roomID;
@property (assign, nonatomic) id value;
@property (assign, nonatomic) NSInteger btnindex;
@property (assign, nonatomic) NSInteger pointLableID;
@property (assign, nonatomic) NSInteger pointID;
@property (assign, nonatomic) NSInteger classid;
@property (assign, nonatomic) NSInteger indexID;
@property (assign, nonatomic) NSInteger pointID_yz;
@property (copy, nonatomic) blockEvent onSelected_productList;
@property (copy, nonatomic) blockEvent onSelected_rz;
@property (copy, nonatomic) blockEvent onSelected_yz;
@property (copy, nonatomic) blockEvent onSelected3;
@property (copy, nonatomic) blockEvent onSelected2;
@property (copy, nonatomic) blockEvent onSelected1;
@property (copy, nonatomic) blockEvent onSelected;
@property (strong, nonatomic) NSIndexPath *IndexPath;
//@property (retain, nonatomic) NSIndexPath *IndexPath1;
@property (strong, nonatomic) NSMutableDictionary *DicIndexPath2;
@property (strong, nonatomic) NSMutableDictionary *DicIndexPath;

@property (strong, nonatomic) NSMutableDictionary *dic1;
@property (strong, nonatomic) NSMutableDictionary *dic2;
//
@property (weak, nonatomic) IBOutlet UIView *PropertyListView;
@property (weak, nonatomic) IBOutlet UIView *container1;
@property (weak, nonatomic) IBOutlet UIView *container2;
@property (weak, nonatomic) IBOutlet UIView *container3;
@property (weak, nonatomic) IBOutlet UIView *container4;
//
@property (weak, nonatomic) IBOutlet UIView *bottomView;
@property (weak, nonatomic) IBOutlet UIButton *buttonView1;
@property (weak, nonatomic) IBOutlet UIButton *buttonView2;
@property (weak, nonatomic) IBOutlet UIButton *buttonView3;
@property (weak, nonatomic) IBOutlet UIButton *buttonView4;
@property (weak, nonatomic) IBOutlet UIButton *tempButton;
@property (weak, nonatomic) IBOutlet UIButton *addScheme;
@property (weak, nonatomic) IBOutlet UIView *menuView;
@property (weak, nonatomic) IBOutlet UIView *topView;
@property (assign, nonatomic) NSInteger lableIndex;

@property (weak, nonatomic) IBOutlet UILabel *totalprice;
//
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *_height;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *dis;
@property (weak, nonatomic) IBOutlet UIView *tipsView;
@property (strong, nonatomic) NSMutableDictionary *allroomDic;
@property (strong, nonatomic) NSMutableDictionary *roomDic;
//
@property (strong, nonatomic) NSMutableDictionary *pointroomDic;
@property (strong, nonatomic) NSMutableDictionary *pointDic;
@property (strong, nonatomic) NSMutableDictionary *typepointDic;
@property (strong, nonatomic) NSMutableDictionary *typepointDic1;
//
@property (copy, nonatomic) blockEvent onSelected0;
@property (assign, nonatomic) NSInteger type;
@property (assign, nonatomic) NSInteger all;
@property (assign, nonatomic) NSInteger classids;


@end
